package com.logic.landseaserver.persistence.write;

import org.apache.ibatis.annotations.Param;

import com.logic.landseaserver.domain.CodeReference;

public interface CodeReferenceWriteMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(CodeReference record);

    int updateByPrimaryKeySelective(CodeReference record);
    
    void deleteByIdAndCode(@Param("objectId") Integer objectId, @Param("code") String code, @Param("type") String type);
    /**
     * 删除项目或者房间，一个父类型下的所有code
     * @param objectId
     * @param code
     * @param type
     * @return
     */
    void deleteByIdAndParentCode(@Param("objectId") Integer objectId, @Param("code") String code, @Param("type") String type);

}